/* 
 * File:   form_sharpen_filter.h
 * Author: dima
 *
 * Created on 7 февраля 2015 г., 23:44
 */

#ifndef _FORM_SHARPEN_FILTER_H
#define	_FORM_SHARPEN_FILTER_H
#include <QDialog>
namespace Ui
{
class form_sharpen_filter;
}
namespace ipd
{
class ipd_sharpening_spatial_filter;
class ipd_img;
}

class form_sharpen_filter : public QDialog
{
    Q_OBJECT
public:
    form_sharpen_filter(ipd::ipd_img& image);
    virtual ~form_sharpen_filter();
    inline ipd::ipd_img * get_convertible_image();
private slots:
    void convert_image();
signals:
    void send_image(ipd::ipd_img &img);
private:
    void delete_filter(); // delete filter
    ipd::ipd_img &original_image;
    ipd::ipd_img *convertible_image;
    ipd::ipd_sharpening_spatial_filter *filter;
    Ui::form_sharpen_filter* widget;
};

ipd::ipd_img* form_sharpen_filter::get_convertible_image()
{
    return convertible_image;
}
#endif	/* _FORM_SHARPEN_FILTER_H */
